package com.mezz.bones.framework.payment.wxpay;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
public class WxPayRequest {
  @JsonProperty("mchid")
  private String mchid;
  @JsonProperty("out_trade_no")
  private String out_trade_no;
  @JsonProperty("appid")
  private String appid;
  @JsonProperty("description")
  private String description;
  @JsonProperty("notify_url")
  private String notify_url;
  @JsonProperty("amount")
  private AmountDTO amount;

  @NoArgsConstructor
  @Data
  public static class AmountDTO {
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("currency")
    private String currency;
  }
}
